<?php
//处理配置项
function C($name,$value=null)
{
	static $config=array();
	if(is_array($name))
	{
		$config=array_merge($config,$name);
	}
	else if(is_string($name))
	{
		if(is_null($value))
		{
			//取值
			return $config[$name];
		}
		else
		{
			//设置值
			return $config[$name]=$value;
		}
	}

}
function p($arg)
{
	echo "<pre>";
	print_r($arg);
	echo "</pre>";
}